<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .highlight{
            line-height: 30px;
            width: 300px;
            background-color: black;
            color: gold;
            text-align: center;
            margin: 0px;
            padding: 0px;
            text-indent: 20px;
        }
        .highlight:hover{
            color:white;
            right: 1px;
            bottom: 1px;
            background-color: gray;

        }
        p{
            align-items: center;
        }
        #box{
            position: absolute;
            left: 600px;
        }
    </style>
</head>
<body>
    <div id="box">
        <p class="highlight">这是一段需要高亮显示的文本。</p>
    </div>
    
</body>
</html>